﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Modules.aspx.cs" Inherits="SysManager_Modules" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>模块管理</title>
    <link href="http://libs.useso.com/js/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet">
    <script src="../js/jquery/jquery-1.8.1.min.js" type="text/javascript"></script>
    <script src="../My97DatePicker/WdatePicker.js" type="text/javascript"></script>
    <link href="../css/btnsty.css" rel="stylesheet" type="text/css" />
    <link href="../css/global.css" rel="stylesheet" type="text/css" />
    <link href="../css/editform.css" rel="stylesheet" type="text/css" />
    <script src="../js/bootstrap-treeview.js" type="text/javascript"></script>
    <script src="../js/config.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            //IniModlesTree();
        });
        function IniModlesTree() {
            $.ajax({
                url: url_path + "./index.aspx",
                type: "POST",
                data: { aciton: 'get_modles' },
                timeout: 30000,
                dataType: "json",
                success: function (data) {
                    $('#treeview1').treeview({
                        color: "#428bca",
                        showBorder: true,
                        data: data
                    });
                },
                error: function () {
                    alert("通讯超时,请检查网络.");
                }
            });
        }

    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <div class="rptTitle">
            <b>模块管理</b>
        </div>
        <div class="param_div">
            <div class="row">
                <div class="col-sm-4" style="width: 260px;">
                    <span>模块列表</span>
                    <div id="Div1" class="tree_div">
                        <asp:TreeView ID="TreeView2" runat="server" BackColor="#DEE1E6" BorderColor="#DEE1E6"
                            BorderStyle="Solid" BorderWidth="1" Height="350px" ShowLines="True" OnSelectedNodeChanged="TreeView2_SelectedNodeChanged">
                            <HoverNodeStyle BackColor="#6699FF" />
                            <Nodes>
                                <asp:TreeNode Text="业务报表" Value="0001">
                                    <asp:TreeNode Text="销一补一报表" Value="0002"></asp:TreeNode>
                                </asp:TreeNode>
                            </Nodes>
                            <SelectedNodeStyle BackColor="#3366FF" ForeColor="White" />
                        </asp:TreeView>
                    </div>
                    <div style="text-align: center; width: 80%; padding-top: 20px;">
                        <asp:LinkButton ID="LinkButton1" class="button small medium-blue" runat="server"
                            OnClick="LinkButton1_Click">新增同级</asp:LinkButton>
                        <asp:LinkButton ID="LinkButton2" class="button small medium-blue" runat="server"
                            OnClick="LinkButton2_Click">新增下级</asp:LinkButton>
                    </div>
                </div>
                <div class="col-sm-4" style="width: 60%;">
                    <span>模块维护</span>
                    <div>
                        <table class="edit_table">
                            <tbody>
                                <tr>
                                    <td class="tdl">
                                        父模块：
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtparent" class="ipt" runat="server" ReadOnly="true"></asp:TextBox>*
                                        <asp:HiddenField ID="hf_paretnid" runat="server" />
                                        <asp:HiddenField ID="hf_IsAdd" runat="server" />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tdl">
                                        序号：
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtmodeorderid" class="ipt" runat="server" placeholder="序号"></asp:TextBox>*
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tdl">
                                        模块编号：
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtmodecode" class="ipt" runat="server" placeholder="模块编号"></asp:TextBox>*
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tdl">
                                        模块名称：
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtmodename" class="ipt" runat="server" placeholder="模块名称"></asp:TextBox>*
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tdl">
                                        模块类型：
                                    </td>
                                    <td>
                                        <asp:ListBox ID="lbmodetype2" class="ipt" Width="160" Height="70" runat="server">
                                            <asp:ListItem Text="类型" Value="0">类型</asp:ListItem>
                                            <asp:ListItem Text="功能模块" Value="1">功能模块</asp:ListItem>
                                            <asp:ListItem Text="功能模块" Value="2">网格</asp:ListItem>
                                        </asp:ListBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tdl">
                                        数据来源：
                                    </td>
                                    <td>
                                        <asp:ListBox ID="lbMtype" class="ipt" Width="160" Height="50" runat="server">
                                            <asp:ListItem Text="KM平台" Value="0" Selected="True">KM平台</asp:ListItem>
                                            <asp:ListItem Text="恒康系统" Value="1">恒康系统</asp:ListItem>
                                        </asp:ListBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tdl">
                                        模块命令：
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtmodeurl" class="ipt" runat="server" Width="400" placeholder="模块URL"></asp:TextBox>*
                                        <div style="color:Gray;">
                                            提示：当类型是网格时此处是执行网格的命令，便于创建网格的字段信息。
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tdl">
                                        模块状态：
                                    </td>
                                    <td>
                                        <asp:CheckBox ID="chkBlock" runat="server" />
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                        <div style="text-align: center; width: 80%; padding-top: 20px;">
                            <asp:LinkButton ID="LinkButton4" class="button small medium-red" runat="server" onclick="LinkButton4_Click" 
                                >删除当前模块</asp:LinkButton>
                            <asp:LinkButton ID="LinkButton3" class="button small medium-blue" runat="server"
                                OnClick="LinkButton3_Click">保存模块</asp:LinkButton>
                            <asp:LinkButton ID="LinkButton5" class="button small medium-blue" 
                                runat="server" onclick="LinkButton5_Click"
                                >建仓网格布局</asp:LinkButton>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    </form>
</body>
</html>
